monitoring-tools-ux

(0 reviews)

Create incident

/{businessId}/troubleTicket

[POST]

This usecase to create ticket in salesforce from Zabbix

URL
https://nonprod.esb.cloud.lla.com/test/monitoring-tools-ux/monitoring-tools-ux/v1/{businessId}/troubleTicket
URL Param
nametypedescriptionrequired
businessIdstringAllowed value for thsi scope: CW, BO, SA, SE, SX, MF, CO, HN, CR, DO, SV, GTY
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request syntax: correlationId: uuid:cwc--, example: correlationId: f058ebd6-02f7-4d3f-942e-904344e8cde5:cwc--qacarepcY
Salesforce tenants
SF Environment to ConnectSF Instance
QAcwc--qacarepc
UATcwc--uatsfdc
Productioncwc--prod
Field Mapping
nametypedescriptionrequired
@typestringDefault: TroubleTicketY
namestringName of the incidentY
descriptionstringDescription of incidentY
ticketTypestringType of incident, Pass RecordType for Incident and Case Default:incident-caseY
externalIdstringPass RecordTypeId of Incident and case in Salesforce Ex: 01280000000AqtFAAS-01234000000GI2LAAWY
prioritystringPriority of incident. Allowed Values:Critical, High, Medium, Low, PlanningY
severitystringSeverity of incident. Allowed Values: Critical, High, Medium, Low, PlanningY
statusstringStatus of Ticket, Allowed Values: acknowledged,held,inProgress,pending,resolved,closed,cancelledY
channel.idstringDefault: For Zabbix -> Zabbix, ToolMaster -> ToolMasterY
channel.namestringDefault: For Zabbix -> Zabbix, ToolMaster -> ToolMasterY
channel.@typestringDefault: ChannelRefY
note[].textstringValue should be in format -Y
note[].@typestringDefault: NoteY
relatedParty[].idstringSalesforce ObjectID of AccountY
relatedParty[].namestringSalesforce ObjectID of ContactY
relatedParty[].rolestringDefault: UserY
relatedEntity[].idstringDefalut: 'sf'Y
relatedEntity[].rolestringDefault: MonitoringTicketY
relatedEntity[].namestringDefault: InstalledSoftwareY
relatedEntity[].@referredTypestringDefault: LogicalResourceY
relatedEntity[].idstringSalesforce ObjectId of Asset, please repeat the object based on assetsY
relatedEntity[].rolestringDefault: MonitoringTicketY
relatedEntity[].namestringDefault: AssetIdY
relatedEntity[].@referredTypestringDefault: TroubleTicketY
troubleTicketCharacteristic[].namestringname of the characteristicY
troubleTicketCharacteristic[].valuestringvalue of characteristicY
troubleTicketRelationship[].idstringCase IdY
troubleTicketRelationship[].namestringCase NameY
troubleTicketRelationship[].@typestringDefault: TroubleTicketRelationshipY
Characteristics Name
characteristic nametypedescriptionrequired
AffectedDatestringThe "affected date" specifies when the issue that caused the incident actually happenedN
AttributedstringAvalableValues-C&W, C&W Human Error, C&W Implementation, C&W Inside Plant, C&W Maintenance Window, C&W Outside Plant, Carrier, Customer, Force Majeure, Provider, Tier 1 Support, Tier 2 Support, Tier 3 SupportN
caseReasonnumberThe reason for which case was created. Available Values- Service Alarmed, Service Down, Intermittencies and/or Latencies, OtherY
causestringIssue of the Ticket "Router issue"N
FailureLocationstringPlace or reason where failure occured AvailableValues-Customer Premises, Datacenter, External Provider, International Trunk, Last Mile, National Trunk, Node(Core)N
SymptomstringBehaviour or alerets on the device. For Example: All lights are green colour, BlinkingN
TypeOfActionstringThis describes Proactive or Reactive. Availablevalues-Proactive or ReactiveY
CatagorystringType of incident Category. Security Policy - Access NOT Authorized,Abuse - General, Abuse - Copyright, Abuse - Spam, Abuse - Dos and DDoS Attacks, Abuse - Bruteforce AttacksN
FailureClassstringThis is the classifications of various reasons for failures caused in the Incident. Salesforce ObjectID "0ny79000000KyqlAAC"N
FailureCodestringThis is the classification code of various reasons for failures caused in the Incident Salesforce ObjectID "0ab56000000KyqlBRC"N
OwnerIdstringSalesforce Object Id of User, Group. These ids will be retrieved by Toolmaster from Salesforce using Analytics query and send it to ESB while creating trouble ticket "0qc73000000KyqlFFH"N
vendorstringVendor of the Asset example: HuaweiN
DownTimeStartDateAndTimestringThis describes start of down timeN
DownTimeEndDateAndTimestringThis describes end of down timeN
isSecurityIncidentstringBoolean value (true/false)N
isMajorIncidentstringBoolean value (true/false)Y
ExternalId Values based on SF instance
Salesforce EnvironmentIncident RecordTypeIdCase RecordTypeIdExample of “externalId” field value
QA0124X000001hi9aQAA0124X000001hi9WQAQ“externalId”:” 0124X000001hi9aQAA-0124X000001hi9WQAQ”
UAT0127d0000005qIGAAY0127d0000005qICAAY”“externalId”:” 0127d0000005qIGAAY-0127d0000005qICAAY”
Production0124X000001hi9aQAA0124X000001hi9WQAQ”“externalId”:” 0124X000001hi9aQAA-0124X000001hi9WQAQ”
Sample request
{
    "description": "Ticket Description",
    "ticketType": "incident-case",// RecordType for Incident and Case
    "externalId": "01280000000AqtFAAS-01234000000GI2LAAW",// RecordTypeId of Incident and case in Salesforce
    "name": "Test Caribbean Countries Account",
    "priority": "High",
    "severity": "Major",
    "status": "closed",
    "channel": {
        "id": "Zabbix",
        "name": "Zabbix",
        "@type": "ChannelRef"
    },
    "note": [
        {
            "text": "This is quite important, please approach me as soon as possible",
            "@type": "Note"
        }
    ],
    "relatedParty": [
        {
            "id": "0tA8B0000004Nsd", // Salesforce ObjectID of Account
            "name": "0tA8B0000004ab",// Salesforce ObjectID ot Contact
            "role": "User"
        }
    ],
    "relatedEntity": [
        {
            "id": "sf",
            "role": "MonitoringTicket",
            "name": "InstalledSoftware" ,
            "@referredType": "LogicalResource"
        },
        {
            "id": "0tA8B0000004NgGUAU", // Salesforce ObjectId of Asset
            "role": "MonitoringTicket",
            "name":"AssetId",
            "@referredType": "TroubleTicket"
        },
        {
            "id": "0y4B0000007NgHGDGH",// Salesforce ObjectId of Asset
            "role": "MonitoringTicket",
            "name":"AssetId",
            "@referredType": "TroubleTicket"
        }
    ],
    "troubleTicketCharacteristic": [
        {
            "name": "AffectedDate",
            "value": "2024-01-24T18:00:58.000+0000"
        },
        {
            "name": "Attributed",
            "value": "C&W Outside Plant"
        },
        {
            "name": "caseReason",
            "value": "Service Down"
        },
        {
            "name": "cause",
            "value": "router issue"
        },
        {
            "name": "FailureLocation",
            "value": "Datacenter"
        },
        {
            "name": "Symptom",
            "value": "Blinking"
        },
        {
            "name": "TypeOfAction",
            "value": "Proactive"
        },
        {
            "name": "Catagory",
            "value": "Security Policy - Access NOT Authorized"
        },
        {
            "name": "FailureClass",
            "value": "0ny79000000KyqlAAC"
        },
        {
            "name": "FailureCode",
            "value": "0ny79000000KyqlAAC"
        },
        {
            "name": "OwnerId",
            "value": "0ny79000000KyqlAAC"
        },
        {
            "name": "vendor",
            "value": "HUAWEI"
        },
        {
            "name": "DownTimeStartDateAndTime",
            "value": "2024-01-24T16:00:58.000+0000"
        },
        {
            "name": "DownTimeEndDateAndTime",
            "value": "2024-01-24T18:00:58.000+0000"
        },
        {
            "name": "isSecurityIncident",
            "value": "false"
        },
        {
            "name": "isMajorIncident",
            "value": "false"
        }

    ],
    "troubleTicketRelationship": [
        {
            "id": "ny79000000KyqlAAC",
            "name": "SCCD",
            "@type": "TroubleTicketRelationship"
        }
    ],
    "@type": "TroubleTicket"
}


##### Sample response

```json
{
    "id": "INC-000000070", // incident Number from salesForce
    "externalId": "0ny05000000L8ZoAAK",//  Salesforce   ObjectId of Incident

    "troubleTicketCharacteristic" : [
    {
      "name":"isMajorIncident",
      "value":" false
    }
    ]
}


Reviews